{if $permissions.email}
    Email Permited
{else}
    <a href="javascript:OW_FB.checkPermission('email');">Email</a>
{/if}
    